<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>mod_auth_nwauth</TITLE>
<LINK REL="STYLESHEET" HREF="manual.css">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#00003F" ALINK="#FF0000">
<DIV CLASS="body">

<DIV ALIGN="CENTER">
 <A HREF="http://nanoweb.si.kz/"><IMG BORDER="0" SRC="/icons/nanoweb.png" ALT="[NANOWEB DOCUMENTATION]"></A>
 <H3><SMALL>NANOWEB</SMALL>, the aEGiS PHP web server</H3>
</DIV>

<H1 ALIGN="CENTER">mod_auth_nwauth</H1>

The authentication schema first introduced in nanoweb was the use of nanoweb
authentication files&trade; often named <b><tt>.nwauth</tt></b>.
<br>
You still can use these authentication files, when you load and activate
this module in one of your configuration files (nanoweb.conf, vhosts.conf,
.nwaccess):

<br>
<br>

<PRE CLASS="samp">AuthRealm = realm name (will be shown as info text in most browsers)

# use the .nwauth module
AuthRequire = <b>NWAUTH</b>

# the login and password pairs are
# kept in this file:
AuthNwauthFilename = /var/www/vhosts/www.example.com/admin/.nwauth </PRE>

<br>
<br>

You really should give the full path to the .nwauth file (can have another
file name of course). Such a file should look like:

<br>
<br>

<PRE CLASS="samp">#?nwauth
login1:des-password1
login2:des-password2
...
loginNNN:des-passwordNNN
</PRE>

<br>

Remember that the first line isn't taken into account (it formerly contained
the auth realm name). des-password means that the password has been
encrypted using the standard crypt() system call.

<br>
<br>

There is a small utility within the nanoweb tarball, which sould ease
creation of this type of authentication files.

<br>
<BR><HR NOSHADE COLOR="#063239">
 <H3 ALIGN="CENTER"> <SMALL>NANOWEB</SMALL>, the aEGiS PHP web server </H3>
<DIV CLASS="navline"><A HREF="index.html">Index</A> &nbsp; <A HREF="modules.html">Modules</A> &nbsp; <A HREF="core.html">Configuration</A> &nbsp; <A HREF="../">READMEs</A> &nbsp; <A HREF="faq.html">FAQ</A> &nbsp; <A HREF="http://forums.t0x.net/viewforum.php?f=1">Support Forum</A></DIV>

</DIV>
</BODY>
</HTML>
